using System.Text.RegularExpressions;

namespace TLDRML.Tokens
{
    public class NameDeclarationToken : Token
    {
        public NameDeclarationToken(TokenPosition position) : base(position)
        {
        }

        public override string ToString()
        {
            return "[NAME-DECLARATION]";
        }
    }

    public class NameDeclarationTokenDefinition : TokenDefinition
    {
        public NameDeclarationTokenDefinition() 
            : base(new Regex("#", RegexOptions.Compiled))
        {
        }

        public override Token Create(TokenPosition tokenPosition, string value)
        {
            return new NameDeclarationToken(tokenPosition);
        }
    }
}